﻿/*  
 * Helix Engine
 * http://helixengine.codeplex.com/
 * 
 * Copyright (c) 2010 - 2011 Joe Hegarty
 *  
 * This source code is subject to the terms of the Microsoft Public License (Ms-PL). 
 *  
 * Redistribution and use in source and binary forms, with or without modification, 
 * is permitted provided that redistributions of the source code retain the above 
 * copyright notices and this file header. 
 * 
 * For details please see http://www.opensource.org/licenses/ms-pl.html 
 *  
 * All other rights reserved. 
 *
 */  

using System;

namespace HelixEngine.Exceptions
{
    /// <remarks>
    /// An exception which is thrown when an attempt to reinitialise 
    /// a variable which is already initialised occurs
    /// </remarks>
    public class AlreadyInitialisedException : Exception
    {
        /// <summary>
        /// The constructure of AlreadyInitialisedException
        /// </summary>
        /// <param name="variable">The variable already initialised</param>
        public AlreadyInitialisedException(string variable)
            : base("Already Initialised: " + variable)
        {

        }
    }
}
